﻿<Grid
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:dxm="http://schemas.devexpress.com/winfx/2008/xaml/map"
    xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"

    x:Class="Luna.UI.Crm.GeoSearchView"
    HorizontalAlignment="Stretch"
    VerticalAlignment="Stretch"
    Background="Transparent"
    mc:Ignorable="d" d:DesignHeight="567" d:DesignWidth="1119.15">
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="275" />
        <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <dxm:MapControl CenterPoint="{Binding CenterPoint}" ZoomLevel="15" Grid.Column="1" Margin="5">
        <dxm:ImageTilesLayer>
            <dxm:ImageTilesLayer.DataProvider>
                <dxm:OpenStreetMapDataProvider Kind="Hybrid" />
            </dxm:ImageTilesLayer.DataProvider>
        </dxm:ImageTilesLayer>
        <dxm:VectorLayer>

            <dxm:MapPushpin Information="Center"  TraceStroke="LightGreen" Location="{Binding CenterPoint}" />
        </dxm:VectorLayer>
    </dxm:MapControl>
    <dxe:TextEdit Grid.Column="1" HorizontalAlignment="Right" Margin="0,25,25,0" VerticalAlignment="Top" Width="450" EditValue="{Binding Address, UpdateSourceTrigger=PropertyChanged}" EditValuePostMode="Delayed" EditValuePostDelay="2000" />
</Grid>